//默认分页样式
export const pagination = {
    current: 1, //当前页码
    total: 0, // 总条数
    pageSize: 10, //每页中显示10条数据
    showTotal: total => `共${total} 条数据`, //分页中显示总的数据
    showSizeChanger: true,
}


//======================


//回复信息
export const replyTable = [
    {
        title: '编号',
        dataIndex: 'id',
        align: 'center',
        width: 180,
        ellipsis: true,

    },

    {
        title: '关键字',
        align: 'left',
        ellipsis: true,

        dataIndex: 'keyword',

    },


    {
        title: '匹配方式',
        dataIndex: 'matchType',
        align: 'center',
        width: 150,
        scopedSlots: {
            customRender: 'matchType'
        }
    },


    {
        title: '回复类型',
        align: 'center',
        dataIndex: 'contentType',
        width: 150,
        scopedSlots: {
            customRender: 'contentType'
        }

    },


    {
        title: '触发事件',
        align: 'center',
        dataIndex: 'event',
        width: 150,
        scopedSlots: {
            customRender: 'event'
        }

    },


    {
        title: '设置时间',
        align: 'center',
        width: 180,
        dataIndex: 'updateTime',
        ellipsis: true,

    },


    {
        title: '操作',
        dataIndex: 'operation',
        align: 'center',
        width: 150,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


//微信用户
export const userTable = [
    {
        title: '头像',
        dataIndex: 'headImgUrl',
        align: 'center',
        width: 80,
        scopedSlots: {
            customRender: 'headImgUrl'
        }

    },
    {
        title: '昵称',
        align: 'left',
        width: 100,
        dataIndex: 'nickname',

    },
    {
        title: '订阅状态',
        dataIndex: 'subscribe',
        align: 'center',
        width: 90,
        scopedSlots: {
            customRender: 'subscribe'
        }

    },


    {
        title: '关注来源',
        dataIndex: 'subscribeScene',
        align: 'center',
        width: 150,
        scopedSlots: {
            customRender: 'subscribeScene'
        }
    },


    {
        title: '性别',
        align: 'center',
        dataIndex: 'sex',
        width: 80,
        scopedSlots: {
            customRender: 'sex'
        }

    },


    {
        title: '国家',
        dataIndex: 'country',
        width: 100,
        ellipsis: true,

    },


    {
        title: '省份',
        width: 100,
        dataIndex: 'province',
        ellipsis: true,
    },
    {
        title: '城市',
        align: 'center',
        width: 100,
        dataIndex: 'city',
        ellipsis: true,

    },



    {
        title: '标签',

        width: 150,
        dataIndex: 'tagIds',
        scopedSlots: {
            customRender: 'tag'
        },
        ellipsis: true,

    },

    {
        title: '备注',
        align: 'left',
        dataIndex: 'remark',
        ellipsis: true,

    },


    {
        title: '操作',
        dataIndex: 'operation',
        align: 'center',
        width: 150,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


//素材表格样式
export const tagTable = [




    {
        title: '标签编号',
        dataIndex: 'tagId',
        align: 'center',
        width: 100,
        ellipsis: true,

    },

    {
        title: '标签名称',
        align: 'left',
        ellipsis: true,
        dataIndex: 'tagName',

    },


    {
        title: '标签人数',
        dataIndex: 'count',
        align: 'center',
        width: 100,

    },





    {
        title: '操作',
        dataIndex: 'operation',
        align: 'center',
        width: 180,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];

